﻿using System;
using System.Collections.Generic;
using System.Text;
using AD.DAL;
using AD.Model;
using System.Data;

namespace AD.BLL
{
    public class UsersBLL : BLLBase
    {
        public static int Insert(UsersMod user)
        {
            return UserDAL.Insert(user);
        }

        public static UsersMod CheckEmail(UsersMod user)
        {
            return CheckEmail(user.Email);
        }

        public static UsersMod CheckEmail(string email)
        {
            return UserDAL.CheckEmail(email);
        }

        public static UsersMod SignUser(UsersMod user)
        {
            return UserDAL.SignUser(user);
        }

        public static DataTable QueryFilterToTable(string filter)
        {
            return UserDAL.QueryFilterToTable(filter);
        }

        public static List<UsersMod> QueryFilterToList(string filter)
        {
            return UserDAL.QueryFilterToList(filter);
        }

        public static int UpdateOtherInfo(UsersMod user)
        {
            return UserDAL.UpdateOtherInfo(user);
        }

        public static int UpdatePasswd(UsersMod user)
        {
            return UserDAL.UpdatePasswd(user);
        }

        public static int Delete(UsersMod user)
        {
            return UserDAL.Delete(user);
        }
    }
}